package com.example.lotterysystem.mapper;

import com.example.lotterysystem.pojo.dataobject.PrizeDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PrizeMapper {

    int insert(PrizeDO prizeDO);

    int count();

    List<PrizeDO> selectPrizeList(@Param("offset") Integer offset,
                                  @Param("pageSize") Integer pageSize);

    List<Long> selectExistByIds(@Param("items") List<Long> prizes);

    List<PrizeDO> batchSelectByIds(@Param("items") List<Long> prizeIds);

    PrizeDO selectById(@Param("id") Long id);
}
